package com.ftg.learn.assess.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("evaluation_media")
@Schema(description = "媒体实体类")
public class Media {
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    Long mediaId;

    @TableField("evaluation_id")
    @Schema(description = "评价id")
    Long evaluationId;

    @TableField("media_url")
    @Schema(description = "媒体地址")
    String mediaUrl;

    @TableField("media_type")
    @Schema(description = "媒体类型")
    int mediaType;

    @TableField("create_time")
    @Schema(description = "创建时间")
    LocalDateTime createTime;
}
